import numpy as np  

if __name__ == "__main__":
    # extract head
    wav_head = open("16KHz_mono.wav", "rb").read()[:44]
    
    off_sdk = eval(open("./off_sdk.txt").read())
    off_sdk_bin = np.asarray(off_sdk, dtype='int16').tobytes()
    
    f = open("off_sdk.wav", "wb")
    f.write(wav_head + off_sdk_bin);
    f.close()
    